Skip to main content

HTTP requests

HTTP requests using lightweight online HTTP client (https://vason.io/open-http)

APIs

Retrieve JSON data for analysis by making HTTP requests to different APIs (clouds). Explore and:

  • Evaluate prominent APIs from Google or ChatGPT
  • Interact with IBM Watson API and Elasticsearch
  • Develop and streamline ETL processes using Informatica or IBM Datastage
  • Conduct experiments with CI/CD processes on Microsoft Azure.

Syntax of HTTP-Request

HTTP requests follow this syntax:

To write a request, make sure you use the following 2 mandatory elements:

  • Name of request (will also be used for the script). Before the request title, you need to put three hashtags
    ### name of request
  • HTTP method und URL:
    GET, POST, PUT or DELETE URL

Optionally, you can include:

  • HTTP header(s):
    header name: header value ...
  • body, This is the textual content, for example, in JSON format.
    Inside the request, prepend the request body with a blank line.

In URL, headers and body can be included the variables enclosed in double curly braces: {{variable}}. See next topic HTTP Variables.

Single-line comments, preceded by a double slash, are allowed anywhere.


//comments

Before several requests, you can specify the name of the request group. This allows, when there are a large number of requests, to work conveniently with the structure, including quickly finding requests. The name of the request group should be preceded by one or two hashtags.


## Name of the request group

Example HTTP-Request

### example request name

GET  https ://dummyjson.com/carts


Accept: application/json

{key: 'example_body'}

User interface

HTTP requests using lightweight online HTTP clientHTTP requests using lightweight online HTTP client
  1. Click the run button to execute the HTTP request

  2. Three hashtags are required before the request title

  3. Click the Structure button to see the requests structure, including the names of request groups

  4. On the next line after the request title, you need to specify the HTTP method and URL, which may include variables

  5. On the next line, you can optionally write HTTP request headers. Header values may include variables

  6. Next, skipping one line, you can optionally write the HTTP request body

  7. After executing the request, a line with the response status and control buttons with the links will appear in the text. Click on the date and time of the response if you need to see technical information about the response, such as the status and response headers.

  8. Click the to left or to right links to see in the left or right panel the response body, usually in the JSON format.